<template>
	<view class="px-4">
		<view class="bg-main text-white flex align-center justify-center font-lg py-2 rounded-circle "
			hover-class="bg-main" @click="logout">退出登录</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			logout(){
				this.$store.dispatch('logout').then(res=>{
					uni.showToast({
						title:'退出成功',
						icon:'none'
					})
				})
			}
		}
	}
</script>

<style>

</style>
